import App from './App'


// #ifndef VUE3
import Vue from 'vue'
import store from './store'


import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'



const app = new Vue({
  ...App,
  store
})

app.$mount()
// import {initRequest} from './util/request/index.js'




// #endif

// #ifdef VUE3

import { createSSRApp } from 'vue'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import uviewPlus from '@/uni_modules/uview-plus'
import {initRequest} from './util/request/index.js'


export function createApp() {
  const app = createSSRApp(App)
  app.use(ElementPlus)
   // 引入请求封装
  initRequest(app)

  app.use(store).use(uviewPlus)
 
  
  return {
    app
  }
}

// #endif